Break out the hotplug cleanup code into xen-hotplug-cleanup. Claim the block
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 27 Feb 2006 16:16:04 +0000 (17:16 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 27 Feb 2006 16:16:04 +0000 (17:16 +0100)
commitf32e156c0e2405de3ec89e8f3bbf66b1e4a8254c
tree85f51f0e1bab15675b0eaf425334d0ffdc84e7ab
parent1b2fcd85a00f328a5f71aacd7d99e1085440617b
Break out the hotplug cleanup code into xen-hotplug-cleanup.  Claim the block
script's lock before doing the cleanup, to avoid a race that causes the message
"xenstore-list: could not list path backend/vbd/40" in /var/log/hotplug.log,
with a subsequent refusal to create the domain, after a domain reboot.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/Makefile
tools/examples/xen-backend.agent
tools/examples/xen-backend.rules
tools/examples/xen-hotplug-cleanup [new file with mode: 0644]